//
//  SDScrollTableViewCell.m
//  CarUser
//
//  Created by ayi on 2019/1/8.
//  Copyright © 2019 王森林. All rights reserved.
//

#import "CustomSDScrollTableViewCell.h"

@interface CustomSDScrollTableViewCell()



@end

@implementation CustomSDScrollTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}


/*
 初始化
 */
- (SDCycleScrollView *)adSDScrollview{
    if (!_adSDScrollview) {
        _adSDScrollview = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, BOUNDWIDTH, 200) delegate:self placeholderImage:nil];
        _adSDScrollview.backgroundColor = [UIColor whiteColor];
        _adSDScrollview.showPageControl = YES;
        _adSDScrollview.hidesForSinglePage = YES;
        _adSDScrollview.pageControlDotSize = CGSizeMake(30, 5);
        _adSDScrollview.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        _adSDScrollview.titleLabelHeight = 0;
        _adSDScrollview.autoScrollTimeInterval = 2;
        _adSDScrollview.contentMode = UIViewContentModeScaleAspectFit;
    }
    return _adSDScrollview;
}


@end
